﻿using System;

namespace Progream16
{
    class Program
    {
        public enum Gender1
        {
            男,
            女
        }
        public struct Person
        {
            public string Name;//字段
            public Gender1 Gender1;
            public int Age;
        }
        public struct MyColor
        {
            public int Red;
            public int Green;
            public int Blue;
        }
        static void Main(string[] args)
        {
            MyColor color;
            color.Red = 256;
            color.Blue = 0;
            color.Green = 127;
            Console.WriteLine(color.Red);

            Person person1;
            person1.Name = "张三";
            person1.Age = 18;
            person1.Gender1 = Gender1.男;

            Person person2;
            person2.Name = "小兰";
            person2.Age = 16;
            person2.Gender1 = Gender1.女;

            Console.WriteLine("姓名{0},性别{1}，年龄{2}", person1.Name, person1.Gender1, person1.Age);
            Console.WriteLine("姓名{0},性别{1}，年龄{2}", person2.Name, person2.Gender1, person2.Age);
        }
    }
}
